﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Zatify.WebUI.Models
{
    public class BusinessProfilePaymentViewModel
    {
        [Required(ErrorMessage = "Credit Card Number required")]
        public string CreditCardNo { get; set; }

        [Required(ErrorMessage = "Credit Card Name required")]
        public string CreditCardName { get; set; }

        [Required]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd.MM.yyyy}")]
        public DateTime CreditCardExpDate { get; set; }

        public Int32 CreditCardExpirationMonth { get; set; }
        public Int32 CreditCardExpirationYear { get; set; }

        [Required(ErrorMessage = "Credit Card PIN required")]
        public string CreditCardPin { get; set; }

        [Required(ErrorMessage = "Street Address required")]
        public string BillingAddress1 { get; set; }

        public string BillingAddress2 { get; set; }

        [Required(ErrorMessage = "City required")]
        public string BillingCity { get; set; }
        public string BillingStateCode { get; set; }

        [Required(ErrorMessage = "Zip required")]
        [RegularExpression(@"^\d{5}(-\d{4})?$", ErrorMessage = " Zip code must be 5 characters length")]
        public string BillingZipCode { get; set; }


        public bool BillingUse { get; set; }

        public string BusinessAddress1 { get; set; }
        public string BusinessAddress2 { get; set; }
        public string BusinessCity { get; set; }
        public string BusinessStateCode { get; set; }
        public string BusinessZipCode { get; set; }
    }
}